package Demo4;

public class Student {
    private String name;
    private String sex;
    private int age;

    public Student(String name, int age,String sex ) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student [name ='" + this.name
                + "',sex=,'" + this.sex + "',age=" + this.age
                ;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
